package com.xinzhidi.web.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinzhidi.web.equipment.domain.EquipmentGroup;

import java.util.List;


/**
 * 设备分组Mapper接口
 *
 * @author ruoyi
 * @date 2023-05-26
 */
public interface EquipmentGroupMapper extends BaseMapper<EquipmentGroup> {
    /**
     * 查询设备分组
     *
     * @param id 设备分组主键
     * @return 设备分组
     */
    public EquipmentGroup selectEquipmentGroupById(Long id);

    /**
     * 查询设备分组列表
     *
     * @param equipmentGroup 设备分组
     * @return 设备分组集合
     */
    public List<EquipmentGroup> selectEquipmentGroupList(EquipmentGroup equipmentGroup);

    /**
     * 新增设备分组
     *
     * @param equipmentGroup 设备分组
     * @return 结果
     */
    public int insertEquipmentGroup(EquipmentGroup equipmentGroup);

    /**
     * 修改设备分组
     *
     * @param equipmentGroup 设备分组
     * @return 结果
     */
    public int updateEquipmentGroup(EquipmentGroup equipmentGroup);

    /**
     * 删除设备分组
     *
     * @param id 设备分组主键
     * @return 结果
     */
    public int deleteEquipmentGroupById(Long id);

    /**
     * 批量删除设备分组
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipmentGroupByIds(Long[] ids);
}
